package com.z996.activity7x.ServcieApi;

import org.activiti.engine.*;
import org.junit.Test;

/**
 * StandaloneProcessEngineConfiguration
 */
public class TestDemo {


    /**
     * 创建服务类
     */
    @Test
    public void testCreateDbTable1() {

        //先构建ProcessEngineConfiguration
        ProcessEngineConfiguration configuration = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml");
        //通过ProcessEngineConfiguration创建ProcessEngine，此时会创建数据库
        ProcessEngine processEngine = configuration.buildProcessEngine();

        // 创建服务类
        RuntimeService runtimeService = processEngine.getRuntimeService();
        RepositoryService repositoryService = processEngine.getRepositoryService();
        TaskService taskService = processEngine.getTaskService();


    }
}